package com.chatsocket.util;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;

import com.chatsocket.socketServlet.WebSocketServlet;

public class Message implements Serializable{
	private static final long serialVersionUID = 1L;
	private String origin;//来源人标记   计划 type_userId
	private String destination;//目的人标记 计划 type_userId
	private String content;//发送内容
	private Integer contentType;//内容类型
	private Date time;
	private transient List<String> destinationSessionIds=new CopyOnWriteArrayList<String>(); //对应的目标发送方session用户,不需要序列化返回前台
	private transient List<String> originSessionIds=new CopyOnWriteArrayList<String>(); //对应的统一用户不同session用户,不需要序列化返回前台
	public String getOrigin() {
		return origin;
	}
	public void setOrigin(String origin) {
		this.origin = origin;
	}
	public String getDestination() {
		return destination;
	}
	public void setDestination(String destination) {
		this.destination = destination;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Date getTime() {
		return time;
	}
	public void setTime(Date time) {
		this.time = time;
	}
	public Integer getContentType() {
		return contentType;
	}
	public void setContentType(Integer contentType) {
		this.contentType = contentType;
	}
	public List<String> getDestinationSessionIds() {
		return destinationSessionIds;
	}
	public void setDestinationSessionIds(List<String> destinationSessionIds) {
		this.destinationSessionIds = destinationSessionIds;
	}
	public List<String> getOriginSessionIds() {
		return originSessionIds;
	}
	public void setOriginSessionIds(List<String> originSessionIds) {
		this.originSessionIds = originSessionIds;
	}
}
